package com.csnj.core.Srvs.SysManager;

import com.csnj.common.biz.BaseBiz;
import com.csnj.core.dao.SysElementMapper;
import com.csnj.core.entity.SysElement;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by xiabin on 2018/11/22.
 */
@Service
public class ElementSrvs extends BaseBiz<SysElementMapper, SysElement> {
    public List<SysElement> getAuthorityElementByUserId(Integer userId){
        return mapper.selectAuthorityElementByUserId(userId);
    }
    public List<SysElement> getAuthorityElementByUserId(Integer userId, Integer menuId){
        return mapper.selectAuthorityMenuElementByUserId(userId, menuId);
    }

    public List<SysElement> getAllElementPermissions(){
        return mapper.selectAllElementPermissions();
    }
}
